package com.woniu.learnmybatis.mapper;

import com.woniu.learnmybatis.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * created by woniu201
 * created in 2018/4/18
 */
public interface UserMapper {


    List<User> getAll();

    User getOne(long id);

    void insert(User user);

    void update( User user);

    void delete(long id);
}
